﻿using System.Drawing;

namespace WindowsFormsApplication1
{

    public struct HitTestResult
    {
        public readonly HitType hitType;
        public readonly ElementModel element;

        public HitTestResult(HitType hitType, ElementModel element)
        {
            this.hitType = hitType;
            this.element = element;
        }

        public static HitTestResult Element(ElementModel element)
        {
            return new HitTestResult(HitType.ELEMENT, element);
        }

        public static HitTestResult None()
        {
            return new HitTestResult(HitType.NONE, null);
        }
    }

    public enum HitType
    {
        NONE = 0,

        ELEMENT = 1
    }
}
